package com.jyw.system.domain.dto;

import com.jyw.common.core.domain.entity.SysDept;
import com.jyw.common.utils.SecurityUtils;
import com.jyw.common.utils.bean.BeanUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author 沈峻
 * @ClassName DeptAddDto
 * @Description TODO
 * @Date 2023/8/10 10:35
 **/
@ApiModel("编辑第三方科室请求实体")
@Data
public class DeptThirdEditDto extends DeptThirdAddDto{

    @ApiModelProperty("id")
    private Long deptId;

    @Override
    public SysDept buildThird() {
        SysDept sysDept = super.buildThird();
        sysDept.setUpdateBy(SecurityUtils.getUsername());
        return sysDept;
    }
}
